package com.qyhl.webtv.module_microvideo.shortvideo.classic.detail;

import com.qyhl.webtv.commonlib.entity.microvideo.ClassicProgramBean;

public class ClassicDetailPresenter implements ClassicDetailContract.ClassicDetailPresenter {
    private ClassicDetailContract.ClassicDetailView mView;
    private ClassicDetailModel mModel;

    ClassicDetailPresenter(ClassicDetailContract.ClassicDetailView mView) {
        this.mView = mView;
        this.mModel = new ClassicDetailModel(this);
    }

    @Override
    public void getData(String proId) {
        mModel.getData(proId);
    }

    @Override
    public void doComment(String name, String phone, String question, String proId) {
        mModel.doComment(name, phone, question, proId);
    }

    @Override
    public void doFollow(String proId) {
        mModel.doFollow(proId);
    }

    @Override
    public void setData(ClassicProgramBean bean) {
        mView.setData(bean);
    }

    @Override
    public void setError(String msg) {
        mView.setError(msg);
    }

    @Override
    public void commentSuccess(String msg) {
        mView.commentSuccess(msg);
    }

    @Override
    public void commentError(String msg) {
        mView.commentError(msg);
    }

    @Override
    public void followResult(String msg) {
        mView.followResult(msg);
    }
}